#include <iostream>

#include "protocol.h"
#include "udpserver.h"

int main(int argc, char* argv[]) 
{
	try
	{
		std::cout << "To test server: nslookup <hostname> 127.0.0.1" << std::endl;

		boost::asio::io_service io_service;
		b2gdns::udp::Server server(io_service, b2gdns::udp_port);
		io_service.run();
	}
	catch (std::exception const& e)
	{
		std::cerr << "Exception: " << e.what() << "\n";
	}
	return 0;
}
